import request from '@/utils/request'

// 	获取审批信息
export function GetCheckInfo(data) {
  return request({
    url: 'Approve/GetCheckInfo',
    method: 'POST',
    data: data
  })
}

export function SubmitCheck(data) {
  return request({
    url: 'Approve/SubmitCheck',
    method: 'POST',
    data: data
  })
}
// 审批信息
export function ExamHistoryget(data) {
  return request({
    url: 'ExamHistory/list',
    method: 'POST',
    data,
    headers: { repeatSubmit: false }
  })
}
// 审批记录
export function QueryPageList(data) {
  return request({
    url: 'ExamHistory/QueryPageList',
    method: 'POST',
    data
  })
}
// 代办总数
export function waitWorkNum(data) {
  return request({
    url: 'ExamHistory/waitWorkNum',
    method: 'GET',
    params: data,
    headers: { repeatSubmit: false }
  })
}
// 取消提交
export function CancelSubmit(data) {
  return request({
    url: 'Approve/CancelSubmit',
    method: 'POST',
    data
  })
}
// 各模块待办数量
export function waitWorkGroup(data) {
  return request({
    url: 'ExamHistory/waitWorkGroup',
    method: 'GET',
    params: data,
    headers: { repeatSubmit: false }
  })
}